{{include file="Manage/header.html"}}
<body>
{{include file="Manage/menu.html"}}
<div class="index_main">
    {{include file="Manage/menu2.html"}}
    <div class="message">
        <div class="center">
            <div class="l">
                <ul>
                    {{if $message.data}}
                    {{foreach from=$message.data item=val key=key}}
                    <li {{if $key == '0'}}class="current"{{/if}}>
                        <div class="join">{{$val.content.title}}</div>
                        <p>
                            {{$val.content.content}},{{$val.content.content1}}
                        </p>
                        <div class="date">{{$val.adddate|date_format:"Y-m-d"}}</div>
                    </li>
                    {{/foreach}}
                    {{/if}}
                </ul>
                <div class="page">
                    <div class="pager">
                        {{if $pagenav}}
                        {{$pagenav}}
                        {{elseif $page.html}}
                        {{$page.html}}
                        {{elseif $message.page.html}}
                        {{$message.page.html}}
                        {{/if}}
                    </div>
                </div>
            </div>
            <div class="r">
                <div class="get_date">{{$message.data.0.adddate|date_format:"Y-m-d"}}</div>
                <p>{{$message.data.0.content.content}}</p>
            </div>
        </div>
    </div>
</div>
</div>
<script type="text/javascript">
    $(function(){
        $(".l ul li").click(function(){
            $(this).siblings('li').removeClass('current');
            $(this).addClass('current');
            var con = $(this).find("p").text();
            var date = $(this).find(".date").text();
            $(".r").find("p").text(con);
            $(".r").find(".get_date").text(date);
        });
    });
</script>
{{include file="Manage/footer.html"}}